package com.report.reportserver.mapper;

import com.report.reportserver.model.YamlModel;
import org.apache.ibatis.annotations.Select;

import java.util.*;

public interface YamlModelMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(YamlModel record);

    int insertSelective(YamlModel record);

    @Select("select * from r_yaml where name = #{name}")
    YamlModel selectByName(String name);

    @Select("select name from r_yaml where type = #{type}")
    List<String> selectByType(int type);

    YamlModel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(YamlModel record);

    int updateByPrimaryKeyWithBLOBs(YamlModel record);

    int updateByPrimaryKey(YamlModel record);
}